package com.situ.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * SY_Dept实体类
 * 
 * @author 
 *
 */
public class SyDept {
	/***/
	private Integer id; 
	/***/
	private Object DeptName; 
	/***/
	private String Remark; 
	/***/
	private Integer Disabled; 
	/**
	 * 实例化
	 */
	public SyDept() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public SyDept(JSONObject obj) {
		this();
		if (obj.get("id") instanceof Number) {
			this.setId(((Number) obj.get("id")).intValue());
		}
		this.setDeptName(obj.get("DeptName"));
		if (obj.get("Remark") instanceof String) {
			this.setRemark((String) obj.get("Remark"));
		}
		if (obj.get("Disabled") instanceof Number) {
			this.setDisabled(((Number) obj.get("Disabled")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getDeptName() != null) {
			result.put("DeptName",this.getDeptName());
		}
		if (this.getRemark() != null) {
			result.put("Remark",this.getRemark());
		}
		if (this.getDisabled() != null) {
			result.put("Disabled",this.getDisabled());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	 * 获取DeptName
	 * 
	 * @return
	 */
	public Object getDeptName() {
		return DeptName;
	}

	/**
	 * 设置DeptName
	 * 
	 * @param DeptName
	 */
	public void setDeptName(Object DeptName) {
		this.DeptName = DeptName;
	}
	
	/**
	 * 获取Remark
	 * 
	 * @return
	 */
	public String getRemark() {
		return Remark;
	}

	/**
	 * 设置Remark
	 * 
	 * @param Remark
	 */
	public void setRemark(String Remark) {
		this.Remark = Remark;
	}
	
	/**
	 * 获取Disabled
	 * 
	 * @return
	 */
	public Integer getDisabled() {
		return Disabled;
	}

	/**
	 * 设置Disabled
	 * 
	 * @param Disabled
	 */
	public void setDisabled(Integer Disabled) {
		this.Disabled = Disabled;
	}

	@Override
	public String toString() {
		return "SyDept [id=" + id + " , DeptName=" + DeptName + " , Remark=" + Remark + " , Disabled=" + Disabled + "  ]";
	
	}
	
	
}
